﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SharedGenomics.Core;
using SharedGenomics.Workbench.PresentationModel;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public partial class AnnotationOptionsView : View, IAnnotationOptionsView
    {
        public AnnotationOptionsView()
        {
            InitializeComponent();

            this.btClose.Click += (o, e) => { this.SaveAndCloseClicked.Raise(this); };
            this.btCancel.Click += (o, e) => { this.CancelClicked.Raise(this); };
        }

        public IEnumerable<AnnotationActivationStatus> ActivationStatuses
        {
            get { return this.annotationActivationsBindingSource.Cast<AnnotationActivationStatus>(); }
            set { this.annotationActivationsBindingSource.DataSource = value; }
        }

        public override string Title
        {
            get { return "Annotation Options"; }
        }

        public event EventHandler SaveAndCloseClicked;
        public event EventHandler CancelClicked;
    }
}
